// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, exportPost, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getBysXjCompareList = params => {
    return postRequest('/bysXjCompare/getByPage', params);
};
// 添加
export const addBysXjCompare = params => {
    return postRequest('/bysXjCompare/insertOrUpdate', params);
};
// 编辑
export const editBysXjCompare = params => {
    return postRequest('/bysXjCompare/insertOrUpdate', params);
};
// 删除
export const deleteBysXjCompare = params => {
    return postRequest('/bysXjCompare/delByIds', params);
};

export const getDetailList = params => {
    return postRequest('/bysXjCompareDetail/getByPage', params);
};

export const exportAll = params => {
    return exportPost('/bysXjCompare/exportAll', params);
};
// 导出所有
export const exportAllBysXjInfo = params => {

    return exportPost('/companies/export/all',params);
};
//导出所选
export const exportBatchMarketDataAPI = params => {
    return exportPost('/companies/export/select?ids='+params.ids,params,'get');
};